﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;

namespace BLL
{
    public class ArcYunWebBLL
    {
        #region 私有变量
        private static ArcYunWebDAL _dal;
        private static ArcYunWebDAL dal
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new ArcYunWebDAL();
                }
                return _dal;
            }
        }
        #endregion


        #region 首页banner列表
        public static IList<SOP_ArcyunHomePic> GetHomePicList()
        {
            return dal.GetHomePicList();
        }
        #endregion

        #region 媒体报道
        public static SOP_ArcyunNews GetNewsReport(string id)
        {
            return dal.GetNewsReport(id);
        }

        public static IList<SOP_ArcyunNews> GetArcyunNewsList(int PageSize, int PageIndex, string Strwhere, out int Count)
        {
            return dal.GetArcyunNewsList(PageSize, PageIndex, Strwhere, out Count);
        } 
       
        /// <summary>
       /// 阅读次数
       /// </summary>
       /// <param name="NewId"></param>
       /// <returns></returns>
        public static int SetNewsViewCount(int NewId)
        {
            return dal.SetNewsViewCount(NewId);
        }
        #endregion
    }
}
